﻿using Abp.AutoMapper;
using Paas.Core.Common.Entities;
using Paas.Core.Const.Enums.Common;
using Basefr.App.Dtos;
using Basefr.Runtime.Extensions;

namespace Paas.App.Interface.Common.Dtos
{
    [AutoMap(typeof(Notice))]
    public class NoticeDto : DtoBase
    {
        public long ToId { get; set; }
        public string ToName { get; set; }


        public string Title { get; set; }


        public EnumNoticeType Type { get; set; }
        public string TypeStr => Type.Description();

        public int ObjectId { get; set; }


        public string Content { get; set; }

        public string Link { get; set; }

        public bool IsRead { get; set; }
    }
}

